﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using nspLable.Function.Systems;
using nspLable.Function;
using Product;
using nspLable.Manage;
using nspJob;

public partial class job_JobTrade : System.Web.UI.Page
{
    public string _headstr = "";
    public string _footstr = "";
    public string comCount1 = "0";
    public string comCount2 = "0";
    public string comCount3 = "0";
    public int  listtype = 1;
    public string _lowertype = "";
    public int typeid = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (HttpContext.Current.Request.QueryString["type"] != null && HttpContext.Current.Request.QueryString["type"] != "")
            {
                listtype = Convert.ToInt32(HttpContext.Current.Request.QueryString["type"]);
            }
            if (HttpContext.Current.Request.QueryString["id"] != null && HttpContext.Current.Request.QueryString["id"] != "")
            {
                typeid = Convert.ToInt32(HttpContext.Current.Request.QueryString["id"]);
            }
            getHead();
            getFoot();
            Bind();
        }
    }
    private void Bind()
    {
        if (HttpContext.Current.Request.QueryString["tid"] != null && HttpContext.Current.Request.QueryString["tid"] != "")
        {
            typeid = Convert.ToInt32(HttpContext.Current.Request.QueryString["tid"]);
        }
        Rjob rjb = new Rjob();
        _lowertype = rjb.TypeLink(typeid.ToString());
        
    }
    private void getHead()
    {
        TUserLable Temp = new RUserLable().GateItem("WS_整站头部");
        if (Temp.Info == null || Temp.Info == "")
            _headstr = "";
        else
            _headstr = Temp.Info.ToString();
        _headstr = _headstr.Replace("{PB_WebURL}", Base.BasePage.Config.WebURL);
        _headstr = _headstr.Replace("{PB_收录企业}", comCount1);
        _headstr = _headstr.Replace("{PB_审核通过企业}", comCount2);
        _headstr = _headstr.Replace("{PB_今日收录}", comCount3);
    }
    private void getFoot()
    {
        TUserLable Temp = new RUserLable().GateItem("WS_整站底部");
        if (Temp.Info == null || Temp.Info == "")
            _footstr = "";
        else
            _footstr = Temp.Info.ToString();
        _footstr = _footstr.Replace("{PB_WebURL}", Base.BasePage.Config.WebURL);

    }
}
